<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/30
 * Time: 10:58
 */

namespace app\modules\api\models;

use yii;
use yii\db\Query;


class IncomeProperty
{
    private $table;

    public function __construct()
    {
        $this->table = yii::$app->db->tablePrefix.'income_property';
    }

    /**收入性质
     * @return array
     */
    public function list()
    {
        $db = new Query();
        return $db->select('*')->from($this->table)->all();
    }
}